package com.hdax.dm.rest;

import com.hdax.dm.common.config.api.OderControllerApi;
import com.hdax.dm.entity.order.DmOrder;
import com.hdax.dm.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class OderRestService implements OderControllerApi {

        @Autowired
        private OrderService orderService;

        @Override
        public DmOrder likeUser(String orderNo) {
                return orderService.orderOne(orderNo);
        }
}
